package com.dc.enums;

/**
 * @description: TODO 系统分类
 * @date: 2022/11/07 15:52
 * @author: zhang
 **/
public enum SystemClass {

    /**
     * 空气采样
     */
    AIR_SAMPLING("001", "空气采样", "威士达&北京福莫斯科技发展有限公司", "KQCY"),
    COMBUSTIBLE_GAS("002", "可燃气体", null, "KRQT"),
    ELECTRICAL_FIRE("003", "电气火灾", null, "DQHZ"),
    AUTOMATIC_WATER_SPRAY("004", "自动喷水", null, "ZDPS"),
    VIDEO_MONITORING("005", "视频监控", null, "SPJK"),
    GULF_ACQUISITION("006", "海湾采集", "海湾安全技术有限公司", "HWCJ"),
    SIEMENS_ACQUISITION("007", "西门子采集", "西门子股份有限公司", "XMZCJ");

    private String code;

    private String name;

    private String desc;

    private String remarkName;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public String getRemarkName() {
        return remarkName;
    }

    public void setRemarkName(String remarkName) {
        this.remarkName = remarkName;
    }

    SystemClass(String code, String name, String desc, String remarkName) {
        this.code = code;
        this.name = name;
        this.desc = desc;
        this.remarkName = remarkName;
    }

    /**
     * 返回名称
     *
     * @param code
     * @return
     */
    public static String getValues(String code) {
        for (SystemClass value : values()) {
            if (value.code.equals(code)) {
                return value.name;
            }
        }
        return null;
    }

}
